added SSCLI 1.0
[windows-sources.git] / sdk / samples / all in on code / Visual Studio 2008 / CSWPFDataBinding / Persons.cs
blob76cf432d1ec7ec51779fa503ee1986903cd43d38
1 /************************************* Module Header **************************************\
2 * Module Name: Persons.cs
3 * Project: CSWPFDataBinding
4 * Copyright (c) Microsoft Corporation.
5 *
6 * This example demonstrates how to use DataBinding in WPF
7 *
8 *
9 * This source is subject to the Microsoft Public License.
10 * See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL.
11 * All other rights reserved.
13 * History:
14 * * 10/29/2009 3:00 PM Bruce Zhou Created
16 \******************************************************************************************/
18 using System;
19 using System.Collections.Generic;
20 using System.Linq;
21 using System.Text;
22 using System.Collections.ObjectModel;
24 namespace CSWPFDataBinding
26 public class Persons : ObservableCollection<Person>
28 /// <summary>
29 /// Initializes a new instance of the <see cref="Persons"/> class.
30 /// </summary>
31 public Persons()
33 this.Add(new Person() {
34 Name="employee1",
35 Age=20,
36 Interest="Basketball",
37 Job="programmer",
38 Salary=300 });
40 this.Add(new Person() {
41 Name = "employee2",
42 Age = 21,
43 Interest = "PC game",
44 Job = "programmer",
45 Salary = 200 });
47 this.Add(new Person() {
48 Name = "employee3",
49 Age = 21,
50 Interest = "PC game",
51 Job = "programmer",
52 Salary = 300 });